#include "stdafx.h"
#include "testactor.hpp"
using namespace FndGame2D ;

void FndGame2D::test_actor::update(float time_inteval) {
  m_current_time += time_inteval ;
  if(m_current_time >= m_update_time) {
    m_current_rect_index++ ;
    if(m_mgr.get_index_number(get_current_index_group()) <=  m_current_rect_index)
      m_current_rect_index = 0 ;
    change_rect(m_current_rect_index) ;
    m_current_time = .0f ;
  }
}
